<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>平台管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
    <link rel="stylesheet" href="/css/plat-style.css" media="all">
</head>
<body>

<div class="layui-container">
    <div class="layui-card">
        <div class="layui-card-body" style="padding: 15px;">
            <form class="layui-form" id="levelAddForm">
                <input type="hidden" name="id" value="${level.id}">
                <div class="layui-form-item">
                    <label class="layui-form-label"><span class="red">*&nbsp;</span>等级名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="name" autocomplete="off" class="layui-input" placeholder="请输入登录名，不可重复" value="${level.name}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><span class="red">*&nbsp;</span>升至下一级所需创业分</label>
                    <div class="layui-input-block">
                        <input type="text" onkeyup="this.value=this.value.replace(/[^\0-9\.]/g,'');" name="point" autocomplete="off" class="layui-input" value="${level.point}">
                        <span class="green">注：格式例如200.00，不能包含其他特殊字符</span>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><span class="red">*&nbsp;</span>升至下一级所需直推人数</label>
                    <div class="layui-input-block">
                        <input type="number" onkeyup="value=this.value.replace(/\D+/g,'')" name="underNum" autocomplete="off" class="layui-input" value="${level.underNum}">
                        <span class="green">注：格式例如20，不能包含其他特殊字符</span>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label"><span class="red">*&nbsp;</span>自营商城消费抽成比例</label>
                    <div class="layui-input-block">
                        <input type="number"  name="scale" autocomplete="off" class="layui-input" value="${level.scale}">
                        <span class="green">注：格式例如0.05，不能包含其他特殊字符</span>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label"><span class="red">*&nbsp;</span>会员业务提成收入比例</label>
                    <div class="layui-input-block">
                        <input type="number"  name="bussinessScale" autocomplete="off" class="layui-input" value="${level.bussinessScale}">
                        <span class="green">注：格式例如0.05，不能包含其他特殊字符</span>
                    </div>
                </div>
            </form>
            <div class="layui-form-item layui-layout-admin">
                <div class="layui-input-block">
                    <div class="layui-footer" style="left: 0;">
                        <button class="layui-btn" onclick="FormSubmit('#levelAddForm','/customer/editCustomerLevel')">保存</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="/layuiadmin/layui/layui.js"></script>
<script type="text/javascript" src="/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery.form.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/js/plugins/image/previewImg.js"></script>
<script>
    layui.config({
        //静态资源所在路径
        base: '/layuiadmin/'
    }).extend({
        //主入口模块
        index: 'lib/index'
    }).use(['index', 'form'], function(){
    });
</script>
</body>
</html>